package com.entitymapper.driver;

/**
 * 管理driver操作：<br>
 * 对外提供注入driver<br>
 * 向外提供driver<br>
 * @author hhf
 */
public class DriverManager {

	private static Driver driver;
	
	/**
	 * 对外提供注入driver<br>
	 * @param _driver
	 */
	public static void registerDriver(Driver _driver) {
		driver = _driver;
	}
	/**
	 * 向外提供driver<br>
	 * @return
	 */
	public static Driver getDriver() {
		return driver;
	}
}
